import Vue from 'vue'
import { getAction } from '@/api/manage'

const tslCommonInstockBill = {
  state: {
    selectSparePurchaseBillDetail: [],
    isFromPurchase: false,
  },

  mutations: {
    SET_SelectSparePurchaseBillDetail: (state, para) => {
      state.selectSparePurchaseBillDetail = para
    },
    SET_IsFromPurchase: (state, para) => {
      state.isFromPurchase = para
    },
  },

  actions: {
    saveSelectSparePurchaseBillDetail({ commit }, para) {
      commit('SET_SelectSparePurchaseBillDetail', para)
    },
    saveIsFromPurchase({ commit }, para) {
      commit('SET_IsFromPurchase', para)
    },
  },
}

export default tslCommonInstockBill
